package com.zwr.sheller.shop.mapper;

import com.zwr.sheller.core.pojo.Coupons;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 *@author Kang
 *@date
 */
public interface CouponsMapper extends Mapper<Coupons> {
    /**
     * 查询数据
     * @param manner 优惠状态
     * @param timePeriod 时间状态
     * @param name 模糊
     * @param marketersId 商户id
     * @param  page 页数
     * @return 返回策略
     */
    List<Map<String,Object>> selectCouponsByNameByTimeByManner(Integer manner, Integer timePeriod, String name, Long marketersId, Integer page,Integer varieties);

    /**
     *
     * 查询数据
     * @param manner 优惠状态
     * @param timePeriod 时间状态
     * @param name 模糊
     * @return 数据条数
     */
    Map selectCouponsByNameByTimeByMannerCount(Integer manner, Integer timePeriod,String name,Long marketersId,Integer varieties);

}
